<?php 
include_once("include/config.php");
session_start(); 
?>

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<link rel="stylesheet" href="style/style.css" />
	<link rel="stylesheet" href="css/ui-ligthness/jquery-ui-1.8.20.custom.css" />
	<script type="text/javascript" src="js/jquery-1.2.3.min.js"></script>
	<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="js/jquery-ui-1.8.18.custom.js"></script>
	<script type="text/javascript" src="js/jquery.js"></script>

  <script type="text/javascript" src="js/login.js"></script>
	
	<title>Accueil Live IT</title>
</head>

<body>

<!--------------------------------- HEADER ---------------------------------->

	<?php
		include("include/header.php");
	?>


<!------------------------------- NAVIGATION -------------------------------->
	
	<?php
		include("include/nav.php");
	?>
		
<!--------------------------------- SECTION --------------------------------->
	
	<section>
		<article>
			<div id="ssarticle">
				Derniers albums ajoutes :
				<div id="gallery">
					<div id="slides">
						<div class="slide"><img src="style/sample_slides/bfmv.png" width ="650" height="400" alt="side" /></div>
						<div class="slide"><img src="style/sample_slides/kse.png" width ="650" height="400" alt="side" /></div>
						<div class="slide"><img src="style/sample_slides/ramm.png" width ="650" height="400" alt="side" /></div>
					</div>
					<div id="menu">
						<ul>
							<li class="menuItem"><a href=""><img src="style/sample_slides/thumb_bfmv.png" alt="thumbnail" /></a></li>
							<li class="menuItem"><a href=""><img src="style/sample_slides/thumb_kse.png" alt="thumbnail" /></a></li>
							<li class="menuItem"><a href=""><img src="style/sample_slides/thumb_ramm.png" alt="thumbnail" /></a></li>
						</ul>
					</div>
				</div>
			</div>
			<div id="ssarticle">
			Sed id elit ligula. Sed leo lectus, viverra nec dapibus eu, laoreet vitae eros. Nulla ante mauris, venenatis sit amet molestie sit amet, sollicitudin placerat purus. Quisque dolor nunc, semper eget aliquet eleifend, elementum eget justo. Integer leo magna, ultrices et eleifend in, fringilla non tellus. Praesent sed vestibulum augue. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed vulputate urna tristique arcu eleifend at congue arcu consectetur. Mauris suscipit enim quis urna facilisis pharetra a gravida diam. Fusce vulputate, nisi sed vestibulum dapibus, eros arcu dictum eros, eu mollis est quam vel justo. Suspendisse urna libero, vehicula in vestibulum a, interdum quis tortor. Phasellus dui orci, sodales id dapibus ultrices, lobortis nec orci. Ut massa ligula, accumsan in vestibulum eget, molestie a enim. Proin quis eros eget tellus egestas cursus non at eros. Fusce cursus malesuada metus. Sed et elit elit, id ullamcorper diam.
			Fusce luctus cursus ante, et pellentesque dui pulvinar at. Aliquam a tellus arcu. Donec porttitor, ipsum a pretium ultrices, ante nisi pharetra nisl, sed convallis neque magna id tellus. Proin pharetra, dolor eu tempus mattis, elit libero accumsan massa, ut sollicitudin nibh quam ut metus. Donec arcu turpis, condimentum sit amet fringilla quis, porttitor facilisis nunc. Duis libero libero, tempor auctor tincidunt in, pellentesque et nisl. Aliquam rhoncus cursus nunc dictum malesuada. Nam facilisis luctus tortor quis malesuada. Duis enim nisl, sollicitudin non sollicitudin vel, eleifend a odio. In sapien massa, varius eget tempus quis, ornare ut tellus. Nulla tincidunt aliquam sem, nec rhoncus mi faucibus sit amet. Nunc congue sollicitudin erat, et ornare mi accumsan sit amet. Curabitur quis lorem non tortor dignissim vulputate scelerisque vehicula lectus. Sed ornare pretium est et vulputate. Vivamus ultrices molestie pretium. Praesent tellus lorem, tincidunt a adipiscing quis, laoreet id mi.
			</div>
		</article>
		<aside>
			<div id="ssaside">
			<?php if(isset($_SESSION['userid'])) {
			  $user = UserQuery::create()
			    ->findOneById($_SESSION['userid']);
			?>
			  <b> <?php echo $user->getUsername(); ?> </b><br/>
			  <?php echo $user->getEmail(); ?><br/><br/>
			  Credit: <b> <?php echo $user->getCredits(); ?> EU</b><br/>
			<?php }else{ ?>
				<h1>Connexion rapide</h1>
				<form id="login_form" method="post">
					Username :<br />
					<input type="text" name="username" class="input" /><br/>
					Password :<br />
					<input type="password" name="pwd" class="input" /><br/>
					<label for="connexion"></label>
					<input type="submit" name="connexion" value="Connexion" />
				</form>
				<br />
				<a href="new_user.php"><img id="inscription" src="style/image/inscription.png" OnMouseOver="document.getElementById('inscription').src='style/image/inscriptionhover.png'"
					OnMouseOut="document.getElementById('inscription').src='style/image/inscription.png'" alt=Inscrivez-vous" /></a>
			<?php } ?>
			</div>
			<div id="ssaside">
			Proin vitae lacus et neque elementum porttitor vel in enim. Aenean commodo, urna at iaculis imperdiet, nibh neque gravida tellus, eget porta libero orci eget nisi. Aenean vel nibh eros, nec mollis quam. Vivamus pretium fringilla felis id tristique. Nam odio libero, pretium a egestas et, consectetur in arcu. Aenean non nisl magna, ac cursus magna. Maecenas porta augue at justo tempor nec elementum lacus vulputate. Ut sed luctus mauris. Proin et commodo augue. Integer molestie, leo in condimentum tempor, orci lectus adipiscing lorem, quis viverra mauris quam non diam. Morbi quis nisl vitae urna ornare elementum. Phasellus facilisis pellentesque porta. Curabitur pellentesque, lorem vel suscipit feugiat, felis odio dignissim urna, a eleifend magna nibh quis mauris. Praesent in enim sed nulla vehicula vestibulum et vel leo.
			</div>
		</aside>
	</section>
	
	
<!--------------------------------- FOOTER ---------------------------------->	

	<?php
		include("include/footer.php");
	?>
	
	
<!--------------------------------------------------------------------------->

</body>
</html>
